home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 5791-.end / dmg-6162 / tt / tt_white.txt < prev   
Text File  |  1997-11-17  |  4KB  |  103 lines

  1. FUNKYWARE.ORG - TT_WHITE.TXT - 06.10.1997
  2.  
  3.  
  4. -----
  5. FUNKYWARE.ORG - TT_WHITE.TXT - 06.10.1997
  6.  
  7. NOTE: The following came to me from Mario Becroft, after reading
  8.       my request for a patch to fix the "Polaroid" white border,
  9.       seen on a TT's color screen modes.
  10.  
  11. ***
  12. Date: Mon, 4 Aug 97 12:52 NZST
  13. From: Mario Becroft  mb@tos.pl.net
  14. To: q-funk@citenet.net (Martin-Eric Racine)
  15. Subject: TT white border patch 
  16.  
  17. I noticed on your WWW page mention of a TT white border patch.
  18.  
  19. I think that patch must be one that I was working on and obviously
  20. someone said something about it and now everyone has heard of it.
  21.  
  22. You may as well post these details on your WWW page if you like,
  23. editing them as necessary.
  24.  
  25. I find the white border annoying, so I thought of ways of fixing it.
  26. Changing the palette has the effect of changing the border colour,
  27. but the problem is exchanging the white colour in the palette to
  28. black and black to white means that, while the border colour is
  29. fixed, items drawn onscreen will come out in the wrong colour.
  30.  
  31. Therefore, a patch would need to change the palette and keep things
  32. to still be drawn in the correct colours despite a changed palette.
  33. In other words, it would have to swap colours 0 and 1 when drawing
  34. to the screen.
  35.  
  36. I found two ways of doing this:
  37.  
  38.  * I could write a patch that intercepts all the VDI colour setting
  39.    calls and swaps colours 0 and 1.
  40.  
  41.  * I could patch NVDI so that it's VDIhardware lookup tables are
  42.    changed so that VDI colours 0 and 1 are swapped.
  43.  
  44. I tried both of these approaches, and here are the results:
  45.  
  46. * The patch of the VDI colour calls:
  47.  
  48. This worked reasonably well after I patched all vs?_color() calls,
  49. but I found that there would be a major problem or two. Text, drawn
  50. with v_gtext, still had its background when drawn in opaque mode
  51. drawn with index 0, and there was no way of changing this.
  52.  
  53. This means that I would have to reqrite v_gtext, which is would be
  54. rather a big job, if possible at all. Bitmaps were also, of course,
  55. drawn in the wrong colours, and I think that to fix this it would
  56. be necessary to patch vr_trnfm. This would also be a big job.
  57.  
  58. So I have given up on this idea.
  59.  
  60. * The patch of NVDI itself:
  61.  
  62. I looked all through the relevant parts of NVDI (the NVDI binary
  63. and screen drivers) and I patched all the VDIhardware lookup
  64. tables I could find.
  65.  
  66. Unfortunately, this did not work very well. In 16 colour mode, it
  67. worked for the mouse pointer but nothing else, and in 256 colour
  68. mode it worked for some things and not others.
  69.  
  70. Perhaps I patched the wrong lookup tables (although I could not
  71. find any others anywhere in NVDI) or perhaps NVDI has some lookup
  72. tables that are not recognisable as VDIhardware tables.
  73.  
  74. So, to summarise, neither of these approaches worked. The first
  75. approach might be successful with a lot of work, but even then
  76. it is doubtful.
  77.  
  78. I believe it would be relatively easy for a fix for the white
  79. border problem to be included into NVDI, but I don't think NVDI
  80. authors would want to include a fix, for a silly problem in a
  81. machine like the TT.
  82.  
  83. I hope that clarifies the situation regarding the patch.
  84.  
  85. If you have any further queries, don't hesitate to contact me.
  86.  
  87. --
  88. Mario Becroft                        Auckland, New Zealand
  89. mb@tos.pl.net                 http://www.pl.net/user/mario
  90. Tariland, Atari Support in New Zealand
  91. tariland@tos.pl.net  http://www.pl.net/user/mario/tariland
  92.  
  93. .
  94. -----
  95. NOTE:  those who need to print this may crop HTML tags above and
  96.        below the five dashes and re-save as straight ASCII text.
  97.  
  98.  
  99.  
  100.    HOME
  101.  
  102.  
  103.